home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / src / GLperf3.12-src.lha / GLperf / Clear.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-01  |  4.4 KB  |  171 lines

  1. /*
  2.  *   (C) COPYRIGHT International Business Machines Corp. 1993
  3.  *   All Rights Reserved
  4.  *   Licensed Materials - Property of IBM
  5.  *   US Government Users Restricted Rights - Use, duplication or
  6.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7.  
  8. //
  9. // Permission to use, copy, modify, and distribute this software and its
  10. // documentation for any purpose and without fee is hereby granted, provided
  11. // that the above copyright notice appear in all copies and that both that
  12. // copyright notice and this permission notice appear in supporting
  13. // documentation, and that the name of I.B.M. not be used in advertising
  14. // or publicity pertaining to distribution of the software without specific,
  15. // written prior permission. I.B.M. makes no representations about the
  16. // suitability of this software for any purpose.  It is provided "as is"
  17. // without express or implied warranty.
  18. //
  19. // I.B.M. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  20. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL I.B.M.
  21. // BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  22. // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  23. // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  24. // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  25. //
  26. // Author:  John Spitzer, IBM AWS Graphics Systems (Austin)
  27. //
  28. */
  29.  
  30. #if (defined(INC_REASON)) && (INC_REASON == INFO_ITEM_STRUCT)
  31. #include "Drawn.h"
  32.     unsigned mask;
  33.     int clearColor;
  34.     int clearDepth;
  35.     int clearStencil;
  36.     int clearAccum;
  37.     int colorOfClear;
  38.     GLfloat clearIndex;
  39.     int pointDraw;
  40. #elif (defined(INC_REASON)) && (INC_REASON == INFO_ITEM_ARRAY)
  41. #include "Drawn.h"
  42.     {
  43.         ClearColorBuffer,
  44.         "Clear Color Buffer",
  45.         offset(clearColor),
  46.         Enumerated,
  47.         {
  48.             { True,     "True" },
  49.             { False,    "False" },
  50.             { End }
  51.         },
  52.         { True }
  53.     },
  54.     {
  55.         ClearDepthBuffer,
  56.         "Clear Depth Buffer",
  57.         offset(clearDepth),
  58.         Enumerated,
  59.         {
  60.             { True,     "True" },
  61.             { False,    "False" },
  62.             { End }
  63.         },
  64.         { False }
  65.     },
  66.     {
  67.         ClearStencilBuffer,
  68.         "Clear Stencil Buffer",
  69.         offset(clearStencil),
  70.         Enumerated,
  71.         {
  72.             { True,     "True" },
  73.             { False,    "False" },
  74.             { End }
  75.         },
  76.         { False }
  77.     },
  78.     {
  79.         ClearAccumBuffer,
  80.         "Clear Accumulation Buffer",
  81.         offset(clearAccum),
  82.         Enumerated,
  83.         {
  84.             { True,     "True" },
  85.             { False,    "False" },
  86.             { End }
  87.         },
  88.         { False }
  89.     },
  90.     {
  91.         ClearIndex,
  92.         "Clear Index",
  93.         offset(clearIndex),
  94.         RangedFloatOrInt,
  95.         {
  96.             { 0.0 },
  97.             { 4096.0 }
  98.         },
  99.         { NotUsed, 0.0 }
  100.     },
  101.     {
  102.         ClearColor,
  103.         "Clear Color",
  104.         offset(colorOfClear),
  105.         Enumerated,
  106.         {
  107.             { Red,    "Red" },
  108.             { Green,    "Green" },
  109.             { Blue,    "Blue" },
  110.             { Cyan,    "Cyan" },
  111.             { Magenta,    "Magenta" },
  112.             { Yellow,    "Yellow" },
  113.             { White,    "White" },
  114.             { Grey,    "Grey" },
  115.             { Black,    "Black" },
  116.             { End }
  117.         },
  118.         { Black }
  119.     },
  120.     {
  121.         PointDraw,
  122.         "Draw Point Between Clears",
  123.         offset(pointDraw),
  124.         Enumerated,
  125.         {
  126.             { On,       "On" },
  127.             { Off,      "Off" },
  128.             { End }
  129.         },
  130.         { Off }
  131.     },
  132.     {
  133.         0
  134.     }
  135. #else  /* INC_REASON not defined, treat as plain include */
  136. #ifndef _Clear_h
  137. #define _Clear_h
  138.  
  139. #include "Drawn.h"
  140. #include "General.h"
  141. #include "TestName.h"
  142. #include "PropName.h"
  143. #include "Global.h"
  144. #include "AttrName.h"
  145. #ifdef WIN32
  146. #include <windows.h>
  147. #endif
  148. #include <GL/gl.h>
  149. #include <GL/glu.h>
  150. #include "Random.h"
  151. #include "FuncEnum.h"
  152.  
  153. typedef struct _Clear {
  154. #define INC_REASON INFO_ITEM_STRUCT
  155. #include "Clear.h"
  156. #undef INC_REASON
  157. } Clear, *ClearPtr;
  158.  
  159. ClearPtr new_Clear();
  160. void delete_Clear(TestPtr);
  161. int Clear__SetState(TestPtr);
  162. void Clear__Initialize(TestPtr);
  163. void Clear__Cleanup(TestPtr);
  164. void Clear__Execute(TestPtr);
  165. void Clear__SetExecuteFunc(TestPtr);
  166. TestPtr Clear__Copy(TestPtr);
  167. float Clear__Size(TestPtr);
  168.  
  169. #endif /* file not already included */
  170. #endif /* INC_REASON not defined */
  171.